const mongoose = require("mongoose");

const Schema = mongoose.Schema;

//奖品
const Award = new Schema({
  id: String,
  activityId: String,//活动ID
  name: String,//奖品名称
  amount: Number,//奖项总数量
  left: Number,//奖项剩余数量
  probability: Number,//中奖概率
  createDate: String,//创建时间
  isAvailable: Boolean,//是否为奖品
  imgUrl: String,//奖品图片
})

module.exports = mongoose.model("Award", Award);
